<template>
    <div class="left">
        <ul>
            <li><span>发表博客</span></li>
            <li><span @click="toBlog()">查看博客</span></li>
            <li><span>我的博客</span></li>
            <li><span>我的回复</span></li>
        </ul>
    </div>
</template>

<script>
    export default {
        name: "left",
        data(){
            return{

            }
        },
        methods:{
            toBlog(){
                this.$router.push('/blog');
            }
        }

    }
</script>

<style scoped>
    .left{
        width: 180px;
        height: 600px;
        //border: 1px solid red;
        box-shadow: 0 0 1px #666666;
        border-radius: 5px;
        overflow: hidden;
        background: #F4F4F4;
    }
    .left ul{
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }
    .left ul li{
        //border: 1px solid blue;
        height: 45px;
        line-height: 45px;
        transition: transform 2s;
        margin-bottom: 5px;
    }
    .left ul li:first-child{
        margin-top: 20px;
        overflow: hidden;

    }
    .left ul li:hover{
        background: #C92027;
        color: white;
        cursor: pointer;
        transform: translate(10px,0px);
    }
    .left ul li span{
        margin-left: 20px;

    }





</style>